﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <script type="text/javascript" charset="utf-8" src="/ueditor/editor_config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/ueditor/editor_all_min.js"></script>
</head>
<body>
    <div><script id="editor" type="text/plain"></script></div>
    <script type="text/javascript">
        //实例化编辑器
        var ue = UE.getEditor('editor');
        ue.addListener('ready', function () {
            this.focus();
            var pdescr = "@ViewBag.ProductDescr";
            this.setContent(UE.utils.html(pdescr));
        });

        function getContent() {
            return UE.getEditor('editor').getContent();
        }
</script>
</body>
</html>
